package com.yonyou.cyxdms.basedata.service.vo.brand;

import com.yonyou.cyxdms.basedata.service.vo.series.SeriesDictVO;

import java.util.List;

/**
 * AllSeriesVo
 *
 * @author LiJun
 * @Description
 * @date 2019/8/26 10:49
 */
public class AllSeriesVo {
    private Integer seriesId;
    private Integer brandId;
    /**
     * seriesName
     */
    private String text;
    /**
     * seriesCode
     */
    private String value;

    private String dataSources;

    private String appId;

    private String dealerCode;

    private List<AllModelVo> children;

    public Integer getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(Integer seriesId) {
        this.seriesId = seriesId;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDataSources() {
        return dataSources;
    }

    public void setDataSources(String dataSources) {
        this.dataSources = dataSources;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }


    public List<AllModelVo> getChildren() {
        return children;
    }

    public void setChildren(List<AllModelVo> children) {
        this.children = children;
    }

    public AllSeriesVo() {
    }

    public AllSeriesVo(String name, String code, List<AllModelVo> children) {
        this.text = name;
        this.value = code;
        this.children = children;
    }

    public AllSeriesVo(SeriesDictVO vo) {
        this.seriesId = vo.getSeriesId();
        this.brandId = vo.getBrandId();
        this.dealerCode = vo.getDealerCode();
        this.appId = vo.getAppId();
        this.value = vo.getSeriesCode();
        this.text = vo.getSeriesName();
        this.dataSources = vo.getDataSources();
    }
}
